#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/walltime.h>
#include<sys/time.h>
#include<gui.h>
#include"clock.h"


#define CLOCK_WINDOW_W 150
#define CLOCK_WINDOW_H 100

int main(int argc,char **argv)
{
    if(gui_init(NULL,NULL)<0)
        return -1;
    gui_spirit_t *window=gui_window_create_simple("clock",0,0,CLOCK_WINDOW_W,CLOCK_WINDOW_H);
    if(!window)
    {
        return -1;
    }

    walltime_t wt;
    int ret=walltime(&wt);
    if(ret<0)
    {
        dprintf("[clock] get walltime error\n");
        return -1;
    }
    dprintf("get walltime ok\n");


    
}